﻿<Window x:Class="AttachedPropsFromCode.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Window1" Height="300" Width="300">
    <Grid>
    <Grid.RowDefinitions>
      <RowDefinition />
      <RowDefinition />
      <RowDefinition />
      <RowDefinition />
      <RowDefinition />
    </Grid.RowDefinitions>
         <Grid.ColumnDefinitions> 
      <ColumnDefinition />
      <ColumnDefinition />
    </Grid.ColumnDefinitions>
    <StackPanel> 
         
      <Button x:Name="btn" Grid.Row="4" Click="Button_Click" Height="20"/>
      <Button x:Name="btn2" Grid.Row="4" Grid.Column="1" Height="20"/>   
      </StackPanel>
  </Grid>
</Window>
